package com.chukun.tx.mapper;

import com.chukun.tx.model.MqMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chukun
 * Mq message repository
 */
public interface MqMessageMapper {

    void insertMessage(MqMessage message);

    int updateMessage(MqMessage message);

    List<MqMessage> selectMessagesByStatus(@Param("statusList") List<Byte> statusList,
                                           @Param("count") Integer count);
}
